#pragma once
/*
 * share memory type.
 */

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
typedef int key_t;
typedef HANDLE shmid;
#else
typedef int shmid;
#endif

namespace anet {
	namespace SShareMemorySpace {
		using byte = unsigned char;
		using uint8 = unsigned char;
		using uint64 = unsigned long long;

		// use flag enum.
		enum eShmFlag {
			shm_unuse_flag = 0,
			shm_use_flag = 1,
		};
	}
}